package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 文章对象 sys_article
 *
 * @author ruoyi
 * @date 2024-03-03
 */
public class SysArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章id */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articleTitle;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String articleContent;

    /** 文章作者 */
    @Excel(name = "文章作者")
    private String articleAuthor;

    /** 文章观看数 */
    @Excel(name = "文章观看数")
    private Long articleWatchCount;

    /** 文章评论数 */
    @Excel(name = "文章评论数")
    private Long articleCommentsCount;

    /** 文章点赞数 */
    @Excel(name = "文章点赞数")
    private Long articleThuCount;

    /** 文章日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "文章日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date articleDate;

    /** 文章封面路径 */
    @Excel(name = "文章封面路径")
    private String articleCover;

    /** 文章作者id */
    @Excel(name = "文章作者id")
    private Long articleAuthorid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setArticleTitle(String articleTitle)
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle()
    {
        return articleTitle;
    }
    public void setArticleContent(String articleContent)
    {
        this.articleContent = articleContent;
    }

    public String getArticleContent()
    {
        return articleContent;
    }
    public void setArticleAuthor(String articleAuthor)
    {
        this.articleAuthor = articleAuthor;
    }

    public String getArticleAuthor()
    {
        return articleAuthor;
    }
    public void setArticleWatchCount(Long articleWatchCount)
    {
        this.articleWatchCount = articleWatchCount;
    }

    public Long getArticleWatchCount()
    {
        return articleWatchCount;
    }
    public void setArticleCommentsCount(Long articleCommentsCount)
    {
        this.articleCommentsCount = articleCommentsCount;
    }

    public Long getArticleCommentsCount()
    {
        return articleCommentsCount;
    }
    public void setArticleThuCount(Long articleThuCount)
    {
        this.articleThuCount = articleThuCount;
    }

    public Long getArticleThuCount()
    {
        return articleThuCount;
    }
    public void setArticleDate(Date articleDate)
    {
        this.articleDate = articleDate;
    }

    public Date getArticleDate()
    {
        return articleDate;
    }
    public void setArticleCover(String articleCover)
    {
        this.articleCover = articleCover;
    }

    public String getArticleCover()
    {
        return articleCover;
    }
    public void setArticleAuthorid(Long articleAuthorid)
    {
        this.articleAuthorid = articleAuthorid;
    }

    public Long getArticleAuthorid()
    {
        return articleAuthorid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("articleTitle", getArticleTitle())
                .append("articleContent", getArticleContent())
                .append("articleAuthor", getArticleAuthor())
                .append("articleWatchCount", getArticleWatchCount())
                .append("articleCommentsCount", getArticleCommentsCount())
                .append("articleThuCount", getArticleThuCount())
                .append("articleDate", getArticleDate())
                .append("articleCover", getArticleCover())
                .append("articleAuthorid", getArticleAuthorid())
                .toString();
    }
}
